package com.hoangkien.network;

import java.io.IOException;

import org.apache.http.client.ClientProtocolException;
import org.json.JSONException;

import com.hoangkien.network.request.GetListProductRequest;
import com.hoangkien.network.response.GetListPromotionResponse;

public interface IProtocol {
	
	public final String URL ="http://bms.xakhohang.vn/api/index" ;
	
	
	public final int STATUS_CODE_GENERIC_FAIL = 0;
	public final int STATUS_CODE_GENERIC_FAIL_CONECTTION = 5;
	public final int STATUS_CODE_OK = 1;
	
	public final String METHOD_GET_LIST_PROMOS = "getAndroidPromotions";

	public GetListPromotionResponse getListPromos(GetListProductRequest request)throws JSONException, ClientProtocolException, IOException;
	
}
